package com.relytosoft.mizar.media.camera.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;


/**
 * @author lj
 */
@TableName("VID_CAMERA_TYPE")
@ApiModel("Type")
public class CameraType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID", required = true)
    private Integer id;

    /**
     * 类型名称
     */
    @ApiModelProperty(value = "类型名称", required = true)
    @TableField("NAME")
    private String name;

    /**
     * 图标;文件ID
     */
    @ApiModelProperty(value = "图标;文件ID")
    @TableField("ICON")
    private Integer icon;

    @ApiModelProperty(value = "图标地址")
    @TableField(exist = false)
    private String url;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @TableField("STATUS")
    @NotNull(message = "状态不能为空")
    private Integer status;


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获得主键ID
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获得类型名称
     */
    public String getName() {
        return this.name;
    }

    /**
     * 设置类型名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获得图标;文件ID
     */
    public Integer getIcon() {
        return this.icon;
    }

    /**
     * 设置图标;文件ID
     */
    public void setIcon(Integer icon) {
        this.icon = icon;
    }

    /**
     * 获得备注
     */
    public String getRemark() {
        return this.remark;
    }

    /**
     * 设置备注
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获得状态
     */
    public Integer getStatus() {
        return this.status;
    }

    /**
     * 设置状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return "CameraType{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", icon=" + icon +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                '}';
    }
}